package com.example.high_slope_electronic_sand_table.deviceStatus.dto;

import com.example.high_slope_electronic_sand_table.common.config.CustomFloatSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "GNSS设备状态")
public class GNSSDeviceStatusDTO {
//    @Schema(description = "设备id")
//    private String deviceId;
    @Schema(description = "水平误差")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float horizontalError;
    @Schema(description = "垂直误差")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float verticalError;
    @Schema(description = "数据更新率")
    private Integer dataChangeFrequency;
    @Schema(description = "输入电压")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float inputVoltage;
    @Schema(description = "工作温度")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float operatingTemperature;
    @Schema(description = "存储温度")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float storageTemperature;
    @Schema(description = "环境湿度")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float ambientHumidity;
    @Schema(description = "冲击和震动")
    private String shockAndVibration;
    @Schema(description = "防水")
    private String waterTightness;
    @Schema(description = "上报时间")
    private String datetime;
}
